scan
Launches a sidewall scan with the default TswScannerConfig.
Parameters
from
The UIViewController that presents the full-screen scanner.
client Id
Your Anyline Cloud API client ID, used to authenticate the upload. This is separate from your SDK license key.
on Result
Invoked exactly once, on the main thread, with the TswScanResult outcome.
fun scan(from: UIViewController, clientId: String, config: TswScannerConfig = TswScannerConfig(), onResult: (TswScanResult) -> Unit)
Launches a sidewall scan.
Parameters
from
The UIViewController that presents the full-screen scanner.
client Id
Your Anyline Cloud API client ID, used to authenticate the upload. This is separate from your SDK license key.
config
Optional TswScannerConfig; override UI strings via TswScannerConfig.texts (see io.anyline.tiretread.sdk.tsw.ui.configs.TswScannerTexts). Omit it to use the defaults.
on Result
Invoked exactly once, on the main thread, with the TswScanResult outcome.